Do not reset the waiting_for_printer on status change
authorChenthill Palanisamy <pchenthill@novell.com>
Tue, 5 Nov 2013 12:30:33 +0000 (13:30 +0100)
committerMarek Kasik <mkasik@redhat.com>
Tue, 5 Nov 2013 12:33:40 +0000 (13:33 +0100)
* gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the
waiting_for_printer on status change as the default printer might
get added later.

https://bugzilla.gnome.org/show_bug.cgi?id=577642

gtk/gtkprintunixdialog.c

index 33d447d39b1195dd313fcba173f959e0cf503c34..20bbfe06c894a87b40a5f9ab7940b782d944062d 100644 (file)
@@ -962,7 +962,9 @@ printer_status_cb (GtkPrintBackend    *backend,
    * of GTK_RESPONSE_OK button inside of selected_printer_changed function.
    */
   selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->printer_treeview));
+  priv->internal_printer_change = TRUE;
   selected_printer_changed (selection, dialog);
+  priv->internal_printer_change = FALSE;
 
   if (gtk_print_backend_printer_list_is_done (backend) &&
       gtk_printer_is_default (printer) &&